package com.xzc.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 熊志聪
 * @Classname StaffAllProjectTime
 * @Description 员工所有项目所花费的工时
 * @Date 2021/12/15 15:26
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
public class StaffAllProjectTime implements Serializable {
    private static final long serialVersionUID = -2711278065028182477L;

    private String staffName;
    /**
     * 排序使用
     */
    private Integer userId;
    /**
     * account
     */
    private String account;
    /**
     * DeptNameEnums中的value
     */
    private Integer role;
    private List<StaffProjectTime> staffProjectTimes;

    public StaffAllProjectTime(String staffName, String account, Integer role) {
        this.staffName = staffName;
        this.account = account;
        this.role = role;
        this.staffProjectTimes=new ArrayList<>();
    }
}
